﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace NLBS.Entity
{
    /// <summary>
    /// 友情链接实体类
    /// </summary>
    [DataContract]
    public class FriendLink
    {
        //编号，名称，链接，logo,是否首页显示
        //申请是否通过，链接类型，加入时间
        private int intID;
        private string strName;
        private string strUrl;
        private string strLogo;
        private int intOrder;
        private bool isMain;
        private bool isArrow;
        private DateTime dtAddDate;

        /// <summary>
        /// 链接编号
        /// </summary>
        [DataMember]
        public virtual int LinkID
        {
            get { return intID; }
            set { intID = value; }
        }

        /// <summary>
        /// 链接名称
        /// </summary>
        [DataMember]
        public virtual string LinkName
        {
            get { return strName; }
            set { strName = value; }

        }

        /// <summary>
        /// 链接URL
        /// </summary>
        [DataMember]
        public virtual string LinkURL
        {
            get { return strUrl; }
            set { strUrl = value; }
        }

        /// <summary>
        /// 图片链接
        /// </summary>
        [DataMember]
        public virtual string LinkLogo
        {
            get { return strLogo; }
            set { strLogo = value; }
        }

        /// <summary>
        /// 链接排序
        /// </summary>
        [DataMember]
        public virtual int LinkOrder
        {
            get { return intOrder; }
            set { intOrder = value; }
        }

        /// <summary>
        /// 是否首页显示
        /// </summary>
        [DataMember]
        public virtual bool IsMain
        {
            get { return isMain; }
            set { isMain = value; }
        }

        /// <summary>
        /// 申请是否通过
        /// </summary>
        [DataMember]
        public virtual bool IsArrow
        {
            get { return isArrow; }
            set { isArrow = value; }
        }

        /// <summary>
        /// 加入时间
        /// </summary>
        [DataMember]
        public virtual DateTime AddDate
        {
            get { return dtAddDate; }
            set { dtAddDate = value; }
        }
    }
}
